package cn.ctodb.cms.service.dto;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;


/**
 * A DTO for the CmsImg entity.
 */
public class CmsImgDTO implements Serializable {

    private Long id;

    private String name;

    private String path;

    private String suffix;

    private String type;


    private Long cmsContentId;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getCmsContentId() {
        return cmsContentId;
    }

    public void setCmsContentId(Long cmsContentId) {
        this.cmsContentId = cmsContentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        CmsImgDTO cmsImgDTO = (CmsImgDTO) o;

        if ( ! Objects.equals(id, cmsImgDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "CmsImgDTO{" +
            "id=" + id +
            ", name='" + name + "'" +
            ", path='" + path + "'" +
            ", suffix='" + suffix + "'" +
            ", type='" + type + "'" +
            '}';
    }
}
